package cn.vihub.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 秋晚
 * @Date:  2025/8/7 20:29
 * @Description: 
 **/

/**
 * 订单商品表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "shop_order_goods")
public class ShopOrderGoods implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private String orderNumber;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品图片
     */
    @TableField(value = "goods_pic")
    private String goodsPic;

    /**
     * 商品规格
     */
    @TableField(value = "goods_spec")
    private String goodsSpec;

    /**
     * 商品原价（单价）
     */
    @TableField(value = "goods_price")
    private BigDecimal goodsPrice;

    /**
     * 商品最终价格
     */
    @TableField(value = "goods_total_price")
    private BigDecimal goodsTotalPrice;

    /**
     * 购买数量
     */
    @TableField(value = "goods_num")
    private Integer goodsNum;

    @TableField(value = "create_by")
    private Integer createBy;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_by")
    private Integer updateBy;

    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}